Hello guys.I have a simple problem.
#include <stdio.h>
#include <stdlib.h>
int main()
{
char c=getc(stdin);
if (c=='φ')
Type: Posts; User: Konstantinos
Hello guys.I have a simple problem.
#include <stdio.h>
#include <stdlib.h>
int main()
{
char c=getc(stdin);
if (c=='φ')
Thank you.I thought that we use %d to print a double,%f to print a float etc.
I believe the time has come to ask a stupid question.
Why does this work
double d1=1;
double d2=2;
printf("%f\n",d1/d2);
and this doesnt
double d1=1;
What is the difference between
#include<stdlib.h>
#include<stdio.h>
int dothings(char **k){
printf("%c",*k);
}
int main(){
I am using the while loop to insert in a sorted linked list and i have already taken care of the case that my list is empty.
The code that i used for my question was already part of a program...
Thanks!
Hello.A quick question
while (currentP->next!=NULL && currentP->next->pid < tempP->pid)
{
currentP = currentP->next;
}
Considering the fact that...
Thanks for your time.
Hello,
Let's say i have a struct
struct node
{
int item;
struct node *next
};
Thanks.This was just the case where the first list was empty,i am about to implement the second case now.
Hello,i am getting something strange and unfortunetely i dont understand it.
#include "LinkedList.h"
void concatenate(LinkedList<string>& object1,LinkedList<string>& object2){
...
Nevermind,i fixed it.My project in visual c++ was not set in console mode.
Hello guys i am trying to create a linked list with templates but i am having some trouble.
Header file:
#include "../std_lib_facilities.h"
#include <iostream>
using namespace std;
...
Hello guys,i have an assigment which includes an exercise about creating a calculator gui(fltk).This is the algorithm used from professor Stroustrup without the gui.
//
// This is example code...
I dont get why sizeof(*allWords) and what is the meaning of it in this situation.Thanks everyone for helping me and for there valuable time.
The problem is that i dont know the number of words i am about to fscanf so i need to put them to a temporary place,and than later place them in a dynamic array(therefore i need to count the amount...
Hello guys.I am having this problem and i cant understand why.This my code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
FILE *fp;
int c;char *str;
int str_n=0;...
Wow thanks.I am doing this just for checking.fscanf reads until whitespace,therefore i use loop in order to print all my text.
Hello guys,thanks for the responses.
Thus far i have done this.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char **A;
char *fn;
int n,i;
Hello guys.I need to read a text file which includes a paragraph of plain text.I need to put this paragraph in an array,where each array entry is one word.For example the text <I am superman> will be...
Sorry,i found the problem.It is beacause i used '\0' for blank and it didnt work.Instead ' ' worked.If anyone could explain that would be nice.Thanks for the replys.
it asks where to place the 'X' and the computer responds with 'O'.
Hello guys i have trouble printing tic tac toe display board.I am using putty to connect to my uni computers which run debian.
printf("\n");
printf(" %c | %c | %c\n", a[0][0], a[0][1], a[0][2]);...
they told us to use toupper()..
So why this doesnt work?
int main()
{
int m=0;
int i;