Post your C/C++ Programs Here

Status
Not open for further replies.

Zeeshan Quireshi

C# Be Sharp !
Re: Post ur C/C++ Programs Here

If you people really Like TC's Interface then u can use DJGPP alond with the RHIDE IDE , which is a direct vopy of TC's user interface but uses GCC(DJGPP) as it's backend and runs perfectly on Win XP .

www.delorie.com/djgpp/

Note: RHIDE can be downloaded from the "Zip Picker" page of DJGPP Site .
 

ayush_chh

Ambassador of Buzz
Re: Post ur C/C++ Programs Here

Sykora said:
@shady_inc : Why thank you. :)

@ ayush_chh :
From what I've read of the insnode() function, the code is a mess.

For example, you're mallocing a block of memory at temp->link, without ever initializing temp.

The second thing is, the statement you've bolded, ie n1->link;, isn't supposed to do anything by itself. Perhaps you meant n1->link = temp or something?

EDIT : On further study, I think what you meant was :

Code:
if(desti==1)
  {
   [B]temp[/B]=(node *)malloc(sizeof(node));
   printf("\nEnter the item to be inserted\n");
   scanf("%d",&temp->info);
   temp->link=n1;
   n=temp;
   [B]/*n1->link;*/[/B]
   printf("\nNode Inserted Successfully\n");
   printf("\nThe new Linked List elements are\n");
   break;
  }

Thanks a lot man.....i understood whr i was wrong


Sykora said:
Anyone here running a 64bit OS who can try that out and tell us what size their int is?

don't have one but i can make a guess ,
see if the compiler is 64-bit then
sizeof(int) = 8 byte because 64 bit/8 bit
now limit will be 16^8 = 4294967296

not sure of this........:):)
 
Last edited:

QwertyManiac

Commander in Chief
Re: Post ur C/C++ Programs Here

Yeah that'd be obvious but I think Sykora just wants to confirm it or something ...
 

aditya.shevade

Console Junkie
Re: Post ur C/C++ Programs Here

Hey... was out for some work. Nice proceedings going on.

Just to add one more thing to the integer range issue, @QuizMaster or Qwerty (I dunno who mentioned it, since the avatars are verymuch similar), our (not only your) education system is faulty.

And, it is now, that I came to know, that there are people who like TurboC/C++'s crap IDE and the entire package... :-| :confused:
 

QwertyManiac

Commander in Chief
Re: Post ur C/C++ Programs Here

Damn Quiz_Master for plagiarizing my genuine™ avatar :(

Hah but my professor hates 'standard'. He says learning all that wasn't necessary in his age and that namespaces etc are just to confuse you, that everything is becoming more technical etc, he hates it :lol:
 

aditya.shevade

Console Junkie
Re: Post ur C/C++ Programs Here

^^ He hates that programming is becoming technical? I don't remember when it wasn't technical.....
 

Zeeshan Quireshi

C# Be Sharp !
Re: Post ur C/C++ Programs Here

aditya.shevade said:
And, it is now, that I came to know, that there are people who like TurboC/C++'s crap IDE and the entire package... :-| :confused:
Am i mistaken or is it targeted at me :confused:
 

QwertyManiac

Commander in Chief
Re: Post ur C/C++ Programs Here

aditya.shevade said:
^^ He hates that programming is becoming technical? I don't remember when it wasn't technical.....
Is becoming more technical actually :)
 

aditya.shevade

Console Junkie
Re: Post ur C/C++ Programs Here

Zeeshan Quireshi said:
Am i mistaken or is it targeted at me :confused:

No. It is not targeted at you. It's your choice what you wanna use.

I am targeting this at some people here (here means where I live) who love it and create compiler specific programs. Like using conio.h and graphics.h etc.

And they make me use it also. And I want freedom. So, I am a bit frustrated.

QwertyManiac said:
Is becoming more technical actually :)

:-D.... I can understand ;-)
 
Last edited:

Zeeshan Quireshi

C# Be Sharp !
Re: Post ur C/C++ Programs Here

Dud , i'm totally for Standard C++ , that's why i said that RHIDE has a TC like Interface but uses GCC as backend therefore it is a 'Standard C++' development environment , but with the look and feel like TC :)
 

aditya.shevade

Console Junkie
Re: Post ur C/C++ Programs Here

Zeeshan Quireshi said:
Dud , i'm totally for Standard C++ , that's why i said that RHIDE has a TC like Interface but uses GCC as backend therefore it is a 'Standard C++' development environment , but with the look and feel like TC :)

I know. I said, I am not targeting you but I am targeting those who do not use standard C. You are not included in that. Cool down.
 

timemachine

Boom Bhadam Dhishkyao
Re: Post ur C/C++ Programs Here

leave it dude.......just go for straight discussions... no one is targeting nobody here
 

Zeeshan Quireshi

C# Be Sharp !
Re: Post ur C/C++ Programs Here

aditya.shevade said:
I know. I said, I am not targeting you but I am targeting those who do not use standard C. You are not included in that. Cool down.
:D , arre i'm totally Calm n Composed , was just telling ya bout RHIDE .
 

praka123

left this forum longback
Re: Post ur C/C++ Programs Here

Hope this is not a old news ;:)
Introduction to C++ - Stanford Video Tutorials and Other Lectures

Updated September 15, 2007




Here are some of the best rated videos on C++. The first set 5 video tutorials is from reconnetworks.com. The next set of 13 lectures from Stanford University is much more in-depth. The lecture at the end is by Dr. Bjarne Stroustrup - the original designer and implementer of the C++ Programming Language.
link to the videos:
*idealprogrammer.com/languages/cc/introduction-to-c-standford-video-tutorials-and-other-lectures/

got this via *linuxhelp.blogspot.com/2007/09/collection-of-best-rated-videos-on-c.html (ofcorz not my blog!)
 

nithinks

True Techie
Re: Post ur C/C++ Programs Here

Can anybody write a C program to reverse the contents of a SINGLE Linked list?
 
Status
Not open for further replies.
Top Bottom